package com.distribution.system.openapi.domain.dto;

import com.distribution.common.annotation.valid.IdCard;
import com.distribution.common.annotation.valid.MobilePhone;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author: GodLu
 * @create: 2024-04-20 15:08
 * @description: TODO
 */
@Data
public class ApiSendCodeDTO {
    @NotBlank(message = "appId不能为空")
    private String appid;
    @NotBlank(message = "timestamp不能为空")
    private String timestamp;
    @NotBlank(message = "sign不能为空")
    private String sign;
    // 商品id
    @NotBlank(message = "商品id不能为空")
    private String productCode;
    // 姓名
    @NotBlank(message = "姓名不能为空")
    private String name;
    // 身份证号
    @IdCard
    @NotBlank(message = "证件号码不能为空")
    private String card;
    // 联系电话
    @MobilePhone
    @NotBlank(message = "联系电话不能为空")
    private String postMobile;
}
